home *** CD-ROM | disk | FTP | other *** search
- From: bousch@topo.ph.kcl.ac.uk (Thierry Bousch)
- Subject: warnings
- Date: Fri, 18 Feb 1994 13:23:03 +0100 (MET)
- In-Reply-To: <9402181043.AA16194@math.uni-muenster.de> from "Julian Reschke" at Feb 18, 94 11:43:24 am
-
- Hi Julian,
-
- > Here are some diffs to get rid of some warnings:
-
- > 761c761
- > < if (( r = (*fc.fs->getxattr)(&fc, &xattr) < 0 ))
- > ---
- > > if (0 != ( r = (*fc.fs->getxattr)(&fc, &xattr) < 0 ))
-
- it seems that Pure C had a good reason to issue this warning: I guess that
- the line should have been:
-
- if ((r = (*fc.fs->getxattr)(&fc, &xattr)) < 0)
-
- which is not the same, since the assigment operator has lower
- precedence than the comparison operator.
-
- Thierry.
-